home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.InputEvent;
- import java.awt.event.KeyAdapter;
- import java.awt.event.KeyEvent;
-
- public class BasicComboBoxUI$KeyHandler extends KeyAdapter {
- // $FF: synthetic field
- private final BasicComboBoxUI this$0;
-
- public BasicComboBoxUI$KeyHandler(BasicComboBoxUI var1) {
- this.this$0 = var1;
- }
-
- boolean isTypeAheadKey(KeyEvent var1) {
- return !((InputEvent)var1).isAltDown() && !((InputEvent)var1).isControlDown() && !((InputEvent)var1).isMetaDown();
- }
-
- public void keyPressed(KeyEvent var1) {
- if (this.this$0.comboBox.isEnabled() && !this.this$0.isNavigationKey(var1.getKeyCode()) && this.isTypeAheadKey(var1) && this.this$0.comboBox.selectWithKeyChar(var1.getKeyChar())) {
- ((InputEvent)var1).consume();
- }
-
- }
- }
-